    <include file="Common:header"/>
    <title></title>
	<css file="__PUBLIC__/Admin/css/category.css" />
    <js file="__PUBLIC__/js/jquery-1.8.2.min.js" />
    <script type="text/javascript">
        var ACTION = "__URL__";
    </script>
    <js file="__PUBLIC__/Admin/js/category.js" />
</head>
<body>

		<h2>
            <a>所在位置：商品管理>商品列表</a>
        </h2>
        <br/>
       <table class="table1">
        <thead>
            <tr style="background:#72A9D3">
                <th width="20" align="center">ID</th>
                <th>商品名称</th>
                <th>商品预览图</th>
                <th>商品价格</th>
                <th>商品货号</th>
                <th width="400">操作</th>
            </tr>
        </thead>
        <tbody>
            <foreach name='goods' item='val'>
            <tr class="catgorylist">
                <td align="center">{$val.id}</td>
                <td>{$val.name}</td>
                <td><img src="{$val.listpic}" width="100" title="{$val.name}" alt="{$val.name}"></td>
                <td>￥{$val.sprice}</td>
                <td>{$val.number}</td>
                <td>
                    <a href="{:U('itemList',array('gid'=>$val['id']))}">添加货品</a> |
                    <a href="{:U('editCategory',array('cid'=>$n['id']))}">编辑</a> |
                    <a href="javascript:void(0)" class="delcategory" cid="{$n.id}">删除该商品</a>
                </td>
            </tr>
            </foreach>
            <tr>
                <td colspan="5"></td>
                <td><a href="{:U('addGoods')}"><font color="red" size="3">点击添加商品！</a></font></td>
            </tr>
            <if condition="$goodsCounts gt 0">
                <tr>
                    <td colspan="6" align="center">{$page}</td>
                </tr>
            </if>
        </tbody>
    </table>
</body>
</html>